package sicnu.cs.ich.api.domain.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;
import sicnu.cs.ich.api.common.annotations.transaction.EncryptTransaction;
import sicnu.cs.ich.api.common.annotations.transaction.SensitiveData;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户实名认证信息
 *
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/11/14-12:49
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@SensitiveData
public class CertificateUserForm implements Serializable {
    @NotBlank(message = "真实姓名不能为空")
    private String realName;
    @EncryptTransaction
    @NotBlank(message = "身份证号不能为空")
    private String idNumber;
    @NotNull(message = "身份证正面不能为空")
    private MultipartFile frontImage;
    @NotNull(message = "身份证反面不能为空")
    private MultipartFile backImage;
}
